﻿using System;
using System.Collections.Generic;
using System.Text;

using System.Web.Script.Serialization;

namespace Liberty.Controls.Rules
{
    [Serializable]
    public abstract class AbstractRule
    {
        #region Constants
        #endregion

        #region Event Handlers
        #endregion

        #region Methods
        public virtual string ToJSON()
        {
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            return serializer.Serialize( this );
        }
        #endregion

        #region Properties
        #endregion

        #region Private Methods
        #endregion

        #region Private Properties
        #endregion

        #region Construction and Finalization
        public AbstractRule()
        {
        }
        #endregion

        #region Data Elements
        #endregion
    }
}
